package com.example.sociamedia;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

import javax.xml.validation.Validator;

@SpringBootApplication
@MapperScan("com.example.sociamedia.user.mapper")//意思是扫描mapper包中的mapper组件(注释有@Mapper的接口)
@MapperScan("com.example.sociamedia.post.mapper")
public class SociamediaApplication {

	public static void main(String[] args) {
		SpringApplication.run(SociamediaApplication.class, args);
	}

}
